package com.example.demo.redisUtil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisUtil {
    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    public void  leftpush(String listName,String value){
        stringRedisTemplate.opsForList().leftPush(listName,value);
    }
}
